<template>
  <div class="nav-form">
    <el-form label-width="80px" :model="headerInfo" ref="headerFormRef">
      <el-form-item label="导航名称">
        <el-input v-model="headerInfo.url_name"></el-input>
      </el-form-item>
      <el-form-item label="导航地址">
        <el-input v-model="headerInfo.url_address"></el-input>
      </el-form-item>
      <el-form-item>
        <el-button type="primary" @click="addHeaderInfo">立即创建</el-button>
        <el-button @click="NotShowDialogForm">取消</el-button>
      </el-form-item>
    </el-form>
  </div>
</template>

<script>
export default {
  emits: ["addHeader", "NotShowDialog"],
  data() {
    return {
      headerInfo: {
        url_name: "",
        url_address: "",
      },
    };
  },
  methods: {
    addHeaderInfo() {
      this.$emit("addHeader", this.headerInfo);
    },
    NotShowDialogForm() {
      this.$emit("NotShowDialog");
    },
  },
};
</script>

<style scoped></style>
